import { kgjHttp as http } from '@/services/http';
import type { LoginReqDto, LoginResDto } from '@/types/api/auth';

export const login = (data: LoginReqDto) =>
  http<LoginResDto, LoginReqDto>({
    url: '/passport/login/username',
    method: 'post',
    data
  });
